package org.example.work.entity;

import java.util.List;

public class buser {
    private int id;
    private String name;
    private String password;
    private List<orders> orders; // 用于存储用户的订单信息
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public List<org.example.work.entity.orders> getOrders() {
        return orders;
    }

    public buser(int id, String name, String password, List<org.example.work.entity.orders> orders) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.orders = orders;
    }

    public buser(List<org.example.work.entity.orders> orders) {
        this.orders = orders;
    }

    public void setOrders(List<org.example.work.entity.orders> orders) {
        this.orders = orders;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public buser() {
    }

    public buser(int id) {
        this.id = id;
    }

    public buser(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public buser(int id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    @Override
    public String toString() {
        return "buser{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +

                '}';
    }
}
